@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

:root {
  --bg-color: #050119;
  --second-bg-color: #091540;
  --text-color: #ddfff7;
  --main-color: #ff5e00;
  --box-projects: #ff5e00;
  --azul-color: #2ad8ff;
  --laranja-color: #ff5e00;
  --black: #071013;
  --white: #ddfff7;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

html::-webkit-scrollbar {
  width: 0.5rem;
}

html::-webkit-scrollbar-track {
  background: var(--bg-color);
}

html::-webkit-scrollbar-thumb {
  background: var(--main-color);
}

/* Start Body*/

body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-color);
}

a {
  color: inherit;
  text-decoration: none;
}

/* End Body*/

/* Start Global*/

.heading {
  font-size: 6rem;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 5rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  background: var(--bg-color);
  border-radius: 4rem;
  font-size: 1.6rem;
  color: var(--text-color);
  border: 2px solid var(--main-color);
  letter-spacing: 0.1rem;
  font-weight: 600;
  transition: 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  transform: scale(1.03);
  background-color: var(--main-color);
  color: var(--text-color);
  box-shadow: 0 0 25px var(--main-color);
}

.social-icon a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background: transparent;
  border: 0.2rem solid var(--main-color);
  font-size: 2rem;
  border-radius: 50%;
  color: var(--text-color);
  margin: 3rem 2rem 3rem 0;
  transition: 0.3s ease;
}

.social-icon a:hover {
  background: var(--main-color);
  color: var(--text-color);
  transform: scale(1.3) translateY(-5px);
  box-shadow: 0 0 25px var(--main-color);
}

/* End Global*/

/* Start Header */

header {
  background-color: var(--bg-color);
  padding: 0 0 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.logo {
  font-size: 2rem;
  color: #fff;
  font-weight: bold;
}

.menu-btn {
  padding:0 20px ;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  z-index: 1005;
}

.line {
  width: 30px;
  height: 3px;
  background-color: #fff;
  margin: 4px 0;
}

.nav-links {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  height: 100vh;
  background-color: #ffffff4d;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: right 0.4s ease;
  z-index: 1001;
}

.nav-links.show {
  right: 0;
}

.nav-links a {
  width: 100%;
  font-size: 2rem;
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;

  color: #fff;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease;
}

.nav-links a:nth-child(1) {
  margin-top: 60px;
}

.nav-links a:hover {
  background-color: var(--main-color);
}

@media screen and (min-width: 900px) {
  .menu-btn {
    display: none;
  }

  .nav-links {
    position: static;
    flex-direction: row;
    height: auto;
    background: none;
    width: auto;
    justify-content: flex-end;
    transition: none;
  }

  .nav-links a {
    width: 100%;
    font-size: 1.7rem;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;

    color: #fff;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease;
  }

  .nav-links a:nth-child(1) {
  margin-top: 0;
}
}

/* End Header */

/* Start Main */

.home,
.skills,
.projects,
.education,
.contact {
  background: var(--bg-color);
}

.services,
.skills,
.sale,
.footer {
  background: var(--second-bg-color);
}

section {
  min-height: 100vh;
  padding: 11rem 9% 5rem 9%;
}

/* End Main */

/* Start Home*/

.home {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8rem;
}

.home .home-content .btn-contacts {
  display: flex;
  gap: 1rem;
}

.home .home-content h1 {
  font-size: 6rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
}

span {
  color: var(--main-color);
}

.home-content h2 {
  font-size: 4rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--white);
}

.home-img img {
  position: relative;
  width: 32vw;
  border-radius: 50%;
  box-shadow: 0 0 25px var(--main-color);
  cursor: pointer;
}

.home-img img:hover {
  transform: scale(1.01);
  filter: drop-shadow(0 0 25px var(--main-color));
}

.home-content p {
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 500;
}

.btn-contacts {
  margin: 0 auto;
}

.typing-text {
  font-size: 34px;
  font-weight: 600;
  min-width: 280px;
}

.typing-text span {
  position: relative;
}

.typing-text span::before {
  content: "Desenvolvedor Web";
  color: var(--main-color);
  animation: words 16s infinite;
}

.typing-text span::after {
  content: "";
  background: var(--bg-color);
  position: absolute;
  width: calc(100% + 8px);
  height: 100%;
  border-left: 3px solid var(--bg-color);
  right: -8px;
  animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor {
  to {
    border-left: 3px solid;
  }
}

@keyframes words {
  0%,
  25% {
    content: "Desenvolvedor Full Stack";
  }
  26%,
  50% {
    content: "UI/UX Designer";
  }
  51%,
  75% {
    content: "Desenvolvedor Full Stack";
  }
  76%,
  100% {
    content: "UI/UX Designer";
  }
}

@keyframes typing {
  10%,
  15%,
  30%,
  35%,
  50%,
  55%,
  70%,
  75%,
  90%,
  95% {
    width: 0;
  }
  5%,
  20%,
  25%,
  40%,
  45%,
  60%,
  65%,
  80%,
  85% {
    width: calc(100% + 8px);
  }
}
/* End Home*/

/* Start Services */

.services {
  display: flex;
  background-color: var(--second-bg-color);
  color: black;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(4, 23.5%);
  column-gap: 2%;
  row-gap: 2%;
}

.services-box {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--main-color);
  height: 400px;
  border-radius: 3rem;
  cursor: pointer;
  border: 5px solid transparent;
  transition: 0.4s ease-in-out;
}

.services-box:hover {
  background: var(--second-bg-color);
  color: var(--main-color);
  border: 5px solid var(--main-color);
  transform: scale(1.03);
}

.services-info {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.services-info h2 {
  font-size: 3rem;
  margin: 2rem 0;
  font-weight: 800;
}

.services-info p {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.7;
}

.services-info i {
  font-size: 8rem;
}

/* End Services */

/* Start Projects */

#projects {
  padding: 10rem 8%;
}

.projects {
  background-color: var(--bg-color);
}

.projects-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  place-items: center;
  gap: 20rem;
  row-gap: 4rem;
}

.project-card {
  width: 37rem;
  height: 48rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--bg-color);
  border: 2px solid var(--box-projects);
  border-radius: 3rem;
  gap: 2rem;
  padding: 2rem 2rem;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0 5px var(--main-color);
  transition: 0.3s ease-in-out;
}

.project-card:hover {
  box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color);
  transform: scale(1.02);
}

.project-card img {
  width: 30rem;
  height: 20rem;
  border: 2px solid var(--box-projects);
  border-radius: 2rem;
  object-fit: cover;
}

.project-card h2 {
  font-size: 3rem;
  color: var(--white);
}

.project-card p {
  font-size: 1.2rem;
  color: var(--white);
}

/* End Projects */

/* Start Skills */

.skills .container {
  background: var(--main-color);
  color: var(--text-color);
  border-radius: 1rem;
  padding: 2rem;
  width: 80%;
  margin: auto;
  margin-top: 2rem;
}

.skills .container .row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  flex-wrap: wrap;
  gap: 1.8rem;
}

.skills .container .bar {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 1rem;
  background: var(--bg-color);
  transition: 0.3s ease;
}

.skills .container .bar:hover {
  box-shadow: 0 2px 10px var(--main-color);
  transform: scale(1.04);
}

.skills .container .bar .info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.skills .container .bar .info img {
  height: 7rem;
}

.skills .container .bar .info span {
  font-size: 2rem;
  font-weight: 500;
  margin-left: 0.5rem;
  color: var(--white);
}

/* End Skills */

/* Start Education */

.education .timeline {
  position: relative;
  margin: 0 auto;
  max-width: 1200px;
}

.education .timeline::after {
  content: "";
  position: absolute;
  width: 6px;
  background-color: rgb(90, 64, 64);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  z-index: -2px;
}

.education .container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  border-radius: 6px;
  width: 50%;
}

.education .container::after {
  content: "\f19d";
  position: absolute;
  width: 25px;
  height: 25px;
  line-height: 25px;
  right: -17px;
  background-color: rgb(252, 252, 252);
  color: black;
  border: 4px solid var(--main-color);
  top: 15px;
  border-radius: 50%;
  z-index: 100;
  font-size: 1.89rem;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: rgb(90, 64, 64);
  display: flex;
  align-items: center;
  justify-content: center;
}

.education .left {
  left: 0;
}

.education .right {
  left: 50%;
}

.education .left::before {
  content: "";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid transparent;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent var(--main-color)
    transparent transparent;
}

.education .right::before {
  content: "";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid transparent;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent var(--main-color)
    transparent transparent;
}

.education .right::after {
  left: -16px;
}

.education .content {
  background: var(--main-color);
  position: relative;
  border-radius: 6px;
}

.education .content .tag {
  font-size: 1.5rem;
  padding: 0.5rem 1.5rem;
}

.education .content .decs {
  margin-left: 1.5rem;
  padding-bottom: 1rem;
}

.education .content .tag h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
}

.education .content .decs p {
  font-size: 1.3rem;
  font-weight: 500;
}

/* End Education */

/* Start Contact */

.contact h2 {
  margin-bottom: 3rem;
  color: var(--white);
}

.contact form {
  max-width: 70rem;
  margin: 1rem auto;
  margin-bottom: 3rem;
  text-align: center;
}

.contact form .input-box {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
  width: 100%;
  padding: 1rem;
  font-size: 1.6rem;
  color: var(--white);
  margin: 1rem 0;
  border-radius: 0.8rem;
  border: 2px solid var(--main-color);
  background: var(--bg-color);
  resize: none;
}

.contact form textarea {
  text-align: center;
}

.contact form .btn {
  margin-top: 2rem;
}

/* End Education */

/* Start Footer */

.footer {
  position: relative;
  bottom: 0;
  width: 100%;
  padding: 40px 0;
}

.footer .social-icon {
  text-align: center;
  padding-bottom: 25px;
  color: var(--black);
}

.footer ul {
  margin-top: 0;
  padding: 0;
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 0;
  text-align: center;
}

.footer ul li a {
  color: var(--black);
  border-bottom: 3px solid transparent;
  transition: 0.3s ease;
}

.footer ul li a:hover {
  border-bottom: 3px solid var(--main-color);
}

.footer ul li a {
  color: var(--white);
  text-decoration: none;
}

.footer ul li {
  display: inline-block;
  padding: 0 15px;
}

.footer .copyright {
  text-align: center;
  font-size: 16px;
  color: var(--white);
  margin-top: 50px;
}

.footer .copyright a {
  color: var(--main-color);
  text-decoration: none;
}

/* Responsividade */
@media (max-width: 1675px) {
  .home .home-content h1 {
    font-size: 4rem;
  }

  .home .home-content h2 {
    font-size: 3rem;
  }
}

@media (max-width: 1285px) {
  html {
    font-size: 55%;
  }
  .services-container {
    padding-bottom: 7rem;
    grid-template-columns: repeat(2, 1fr);
    margin: 0 5rem;
  }
  .home .home-content h1 {
    font-size: 3.5rem;
  }

  .home .home-content h2 {
    font-size: 2.5rem;
  }
  .home .home-content p {
    font-size: 1.6rem;
  }
}

@media (max-width: 1050px) {
  .projects-box {
    gap: 16rem;
    row-gap: 3rem;
  }
}

@media (max-width: 991px) {
  header,
  nav li {
    height: 60px;
  }
  nav a {
    font-size: 1.5rem;
  }
  .home {
    flex-direction: column;
    text-align: center;
  }
  .btn-contacts {
    justify-content: center;
  }
  section {
    padding: 10rem 3% 2rem;
  }
  .services {
    padding-bottom: 7rem;
  }
  .footer {
    padding: 2rem 3%;
  }
}

@media (max-width: 895px) {
  .services h2 {
    margin-bottom: 3rem;
  }
}

@media (max-width: 780px) {
  .home-img img {
    width: 55vw;
  }

  .service-info h2 {
    font-size: 2rem;
  }

  .service-info p {
    font-size: 1.4rem;
  }

  .services-container {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 610px) {
  .home .home-content h1 {
    font-size: 3.5rem;
  }
  .home .home-content h2 {
    font-size: 2.5rem;
  }
  .skills .container {
    margin: 0;
    padding: 0;
  }

  .skills .container .row {
    grid-template-columns: repeat(2, 1fr);
    margin: 1rem 0;
    padding: 2rem 1.2rem;
    gap: 1rem;
  }
  .skills .container {
    margin-top: 5px;
    width: 100%;
  }
  .education .timeline::after {
    width: 0;
  }
  .education .timeline {
    margin-top: 2rem;
  }
  .education .container::after {
    left: 31px;
  }
  .education .container {
    width: 100%;
    padding-left: 8rem;
    padding-right: 2rem;
  }
  .education .container::after {
    font-size: 2.5rem;
  }
  .education .content::before {
    left: 61px;
    border: medium solid var(--main-color);
    border-width: 10px 0 10px 10px;
    border-color: transparent var(--main-color) transparent transparent;
  }
  .education .left::after {
    left: 15px;
  }
  .education .right::after {
    left: 15px;
  }
  .education .right {
    left: 0%;
  }
}

@media (max-width: 440px) {
  header,
  nav li {
    height: 50px;
  }
  .heading {
    font-size: 4rem;
  }
  .home .home-content h1 {
    font-size: 2.4rem;
  }
  .home .home-content h2 {
    font-size: 1.8rem;
  }
  .home .home-content p {
    font-size: 1.4rem;
  }
  .project-card {
    width: 33rem;
    height: 45rem;
  }
  .project-card h2 {
    font-size: 2rem;
  }
}

/* End Footer */
